package by.ostrovsky.webhousingsystem.hibernate.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import by.ostrovsky.webhousingsystem.hibernate.entity.common.Common;

@Entity
@Table(name = "taskgroup")
public class TaskGroup extends Common<Long>{
	@Id
	@Column(name = "TASKGROUP_ID")
	private Long id;
	@Column(name = "TASKGROUP_ISBUSY")
	private Boolean isBusy;
	@Column(name = "TASKGROUP_APPOINTMENT")
	private String appointment;
	public String getAppointment() {
		return appointment;
	}

	public void setAppointment(String appointment) {
		this.appointment = appointment;
	}

	@Column(name = "TASKGROUP_FREEAT")
	@Temporal(value = TemporalType.DATE)
	private Date freeAt;
	
	public TaskGroup(){}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Boolean getIsBusy() {
		return isBusy;
	}

	public void setIsBusy(Boolean isBusy) {
		this.isBusy = isBusy;
	}

	public Date getFreeAt() {
		return freeAt;
	}

	public void setFreeAt(Date freeAt) {
		this.freeAt = freeAt;
	}
}
